package com.mask.ucenter.service;

import com.mask.roll.common.util.RollResponse;
import com.mask.ucenter.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.ucenter.entity.VO.RegisterVO;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author hx
 * @since 2021-10-27
 */
public interface MemberService extends IService<Member> {

    /**
     * 用户登录
     * @param member
     * @return
     */
    RollResponse login(Member member);

    /**
     * 用户注册
     * @param registerVO
     * @return
     */
    RollResponse register(RegisterVO registerVO);

    /**
     *判断微信id是否重复
     * @param openid
     * @return
     */
    Member getOpenIdMember(String openid);

    /**
     *查询某一天注册人数
     * @param day
     * @return
     */
    Integer countRegisterDay(String day);
}
